package com.adnaan.restaurant.mapper;

import com.adnaan.restaurant.entity.ResBanner;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 轮播图Mapper接口
 *
 * @author code_yong
 * @date 2023-09-27
 */
@Mapper
public interface ResBannerMapper {

    /**
     * 查询轮播图列表
     *
     * @param resBanner 轮播图
     * @return 轮播图集合
     */
    @Select("select id, title, pic, target_url, sort, status, create_time, update_time from res_banner where status = 1 order by sort")
    public List<ResBanner> selectResBannerList();

}
